# 执行方式: gentool -c "./gen.tool"

# Gen Tool 是一个没有依赖关系的二进制文件，可以用来从数据库生成结构
# required: go install gorm.io/gen/tools/gentool@latest
# see more: https://gorm.io/zh_CN/gen/gen_tool.html

version: "0.1"
database:
  dsn : "root:123456@tcp(localhost:3306)/go-demo-2025?charset=utf8mb4&parseTime=True&loc=Local"
  db  : "mysql"
  tables  : ["demo","user","common_config"]
  outPath :  "./gen_model/dao/query"
  # 默认: gen.go
  outFile :  ""
  # generate unit test for query code
  withUnitTest  : false
  # generated model code's package name
  modelPkgName  : ""
  # generate with pointer when field is nullable
  fieldNullable : false
  # generate field with gorm index tag
  fieldWithIndexTag : false
  # generate field with gorm column type tag
  fieldWithTypeTag  : false